package top.wecreate.buttermediaplayer;

import java.io.IOException;

import android.view.SurfaceHolder;

public interface ButterMediaController {
	public void setDisplay(SurfaceHolder holder);

	public void setDataSourceList(String[] pathArray);

	public void setDataSourceList(ButterMediaInfo[] mediaInfos);

	public void setOnPreparedListener(OnButterPreparedListener preparedListener);

	public void setOnCompletionListener(
			OnButterCompletionListener completionListener);

	public void prepareAsync() throws IllegalArgumentException,
			SecurityException, IllegalStateException, IOException;

	public void pause();

	public void seekTo(int arg0);

	public void start();
	
	public void resume();

	public void reset();
	
	public void release();

	public void stop();

	public int getBufferPercentage();

	public int getCurrentPosition();

	public int getDuration();

	public boolean isPlaying();

	public interface OnButterPreparedListener {
		void onButterPrepared();
	}

	public interface OnButterCompletionListener {
		void onButterCompletion();
	}
}
